<?php
/*************************************************

主持人模型 - the 
Author: WangHuabin <17-6-13>

*************************************************/
namespace Home\Model;
use Think\Model\RelationModel;
class HostModel extends RelationModel {
   

    //查询单数据
    public function get_one($map){
        $data = $this->where($map)->find();
        return $data;
    }

    //查询多条数据 带分页
    public function get_all_page($map,$field="*",$order,$page,$pagenum){
        $data = $this->where($map)->field($field)->order($order)->limit($page,$pagenum)->select();
        return $data;
    }
    
}